<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div class="schoolName">安徽信息工程学院</div>
    <script>
        // 获取div标签
        // let shchoolName = document.querySelector("h1"); 
        let shchoolName = document.getElementsByClassName("schoolName")[0];
        // 获取div标签的内容
        console.log(shchoolName.innerText);
        // 设置div标签的内容
        // shchoolName.innerText = '<a href="https://www.aiit.edu.cn/">安徽大清华</a>';

        // 设置div内部以HMTL的格式展示
        shchoolName.innerHTML = '<a href="https://www.aiit.edu.cn/">安徽大清华</a>';
        
    </script>
</body>
</html>